<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 设置整体布局 */
        .clock{
            position: relative;
            width: 500px;
            height: 500px;
            border-radius: 50%;
            /* border: 8px solid red; */
            margin: 200px auto;
            background-image: url(./img6.jpg);
            background-size: cover;
        }
        /* 设置每一块的布局 */
        .clock div{
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            top: 0;
            margin: auto;
            /* 元素居中 */
        }
        /* 设置小时的容器 */
        .hour-wrapper{
            width: 50%;
            height: 50%;
            /* 设置动画效果 */
            animation: run 43200s infinite;        
        }
        /* 设置小时 */
        .clock .hour{
            width: 8px;
            height: 50%;
            margin: 0 auto;
            background-color: black;
        }
        /* 设置分钟的容器 */
        .min-wrapper{
            width: 75%;
            height: 75%;
            /* 设置动画效果 */
            animation: run 3600s infinite;
        }
        /* 设置分钟的布局 */
        .clock .min{
            width: 5px;
            height: 50%;
            margin: 0 auto;
            background-color:black;
        } 
        /* 设置秒钟的容器 */
        .second-wrapper{
            width: 95%;
            height: 95%;
            /* 设置动画效果 */
            animation: run 60s infinite steps(60);
        }
        /* 设置秒钟的布局 */
        .clock .second{
            width: 3px;
            height: 50%;
            margin: 0 auto;
            background-color:red;
        }
        /* 设置关键帧 */
        @keyframes run{
            from{
                transform: rotateZ(0deg);
            }
            to{
                transform: rotateZ(1turn);
            }
        }
    </style>
</head>
<body>
    <div class="clock">
        <div class="hour-wrapper">
            <div class="hour"></div>
        </div>
        <div class="min-wrapper">
            <div class="min"></div>
        </div>
        <div class="second-wrapper">
            <div class="second"></div>
        </div>
    </div>
</body>
</html>